package com.work12;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Ball implements Comparable<Ball>{
    private String color;
    private String num;

    @Override
    public int compareTo(Ball o) {
        return this.getNum().compareTo(o.getNum());
    }
}
